<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Vue 测试实例</title>
  <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
<div id="blog-post-demo">
  <blog-post title="My journey with Vue"></blog-post>
  <blog-post title="Blogging with Vue"></blog-post>
  <blog-post title="Why Vue is so fun"></blog-post>
</div>

<script>
  const app = Vue.createApp({})

  app.component('blog-post', {
    props: ['title'],
    template: `<h4>{{ title }}</h4>`
  })

  app.mount('#blog-post-demo')
</script>
</body>
</html>

